<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <script>
        // 函数的两种声明方式
        // 1.通过function关键字声明
        function play(){
            console.log('还要多远才能走进你的心');
        }
        play()
        // 2.匿名函数（把函数名赋值给了变量）
        let eat = function (menu){
            console.log(`今晚吃${menu}`);
        }
        eat('红烧鱼');

        // 3.箭头函数
        let run = (run)=>{
            console.log(`今天扛着火车去${run}`);
        }

        run('郑州');
     </script>
</body>
</html>